-- GENERATED SPELL FOR [Blackrock Sentry] --


function spell0_4065(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_4065', 15000, 1)
end

function Sorts_4065(pUnit, Event)
local choix_sorts_4065 = math.random(0, 0)
if choix_sorts_4065 == 0 then
pUnit:RegisterEvent('spell0_4065', 1, 1)
end
end

function mob4065_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4065', math.random(1500, 3000), 1)
end

function mob4065_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4065_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4065_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4065, 1, 'mob4065_Action')
RegisterUnitEvent(4065, 2, 'mob4065_Leave')
RegisterUnitEvent(4065, 3, 'mob4065_Kill')
RegisterUnitEvent(4065, 4, 'mob4065_Die')
